package com.epoint.androidphone.mobileoa.ui.main;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.content.Intent;

import com.epoint.androidphone.R;
import com.epoint.androidphone.mobileoa.ui.attachmanager.AttachManagerView;
import com.epoint.androidphone.mobileoa.ui.contacts.ContactsListView;
import com.epoint.androidphone.mobileoa.ui.mail.MailMain;
import com.epoint.androidphone.mobileoa.ui.schedule.ScheduleMainView;
import com.epoint.androidphone.mobileoa.ui.syn.SynView;
import com.epoint.androidphone.mobileoa.ui.sysconfig.SysConfigView;
import com.epoint.androidphone.mobileoa.ui.todostandard.TodoStandardListView;
import com.epoint.androidphone.mobileoa.ui.webinfo.WebInfoCategoryListView;
import com.epoint.androidphone.mobileoa.ui.webinfo.WebInfoListView;

/**
 * @author liyc
 * @time 2013-1-4 下午5:11:16 
 */
public class MainViewIconInstance {

	public List<GVIcon> iconDataSource(Context con){
		List<GVIcon> iconList = new ArrayList<GVIcon>();
		GVIcon gi = new GVIcon(con, R.drawable.dbsy, "待办事宜",  TodoStandardListView.class, null);
		iconList.add(gi);
		gi = new GVIcon(con, R.drawable.gwyj, "公务邮件",  MailMain.class, null);
		iconList.add(gi);
		
		Intent intentTzgg = new Intent(con, WebInfoListView.class);
		intentTzgg.putExtra("isTzgg", 1);
		gi = new GVIcon(con, R.drawable.tzgg, "通知公告",  WebInfoListView.class, intentTzgg);
		iconList.add(gi);
		gi = new GVIcon(con, R.drawable.xxjb, "信息简报",  WebInfoCategoryListView.class, null);
		iconList.add(gi);
		gi = new GVIcon(con, R.drawable.txl, "通讯录",  ContactsListView.class, null);
		iconList.add(gi);
		gi = new GVIcon(con, R.drawable.wdrc, "我的日程",  ScheduleMainView.class, null);
		iconList.add(gi);
		gi = new GVIcon(con, R.drawable.fjgl, "附件管理",  AttachManagerView.class, null);
		iconList.add(gi);
		gi = new GVIcon(con, R.drawable.sjtb2, "数据同步",  SynView.class, null);
		iconList.add(gi);
		gi = new GVIcon(con, R.drawable.xtsz, "系统设置",  SysConfigView.class, null);
		iconList.add(gi);
		
//		gi = new GVIcon(con, R.drawable.kqqd, "考勤签到",  KaoQingView.class, null);
//		iconList.add(gi);
		
		return iconList;
	}

}
